package com.yxpweb.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author      : yang.xp
 * @date        : 2021/10/27 10:17
 * @description : 不用 @Value 也行 需要导入 spring-boot-configuration-processor 包
 */
@Component
@ConfigurationProperties(prefix = "yxp.web")
public class YxpWebProperties {

    private String name;
    private String address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
